package org.jsola.hr.common.oneKeyPay;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alipay.api.AlipayApiException;
import com.alipay.api.CertAlipayRequest;
import kong.unirest.HttpResponse;
import kong.unirest.Unirest;
import lombok.extern.slf4j.Slf4j;

import java.io.UnsupportedEncodingException;

/**
 * 支付宝获取用户信息相关方法
 *
 * @author wu
 */
@Slf4j
public class AliGetUserInfo {

    //支付宝网关（固定）。
    public static final String URL = "https://openapi.alipay.com/gateway.do";
    //APPID 即创建小程序后生成。
    public static final String APPID = "2021002187615001";
    //开发者私钥，由开发者自己生成。
    public static final String APP_PRIVATE_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCjGuB8E12FZ7Ro+phLBosRiHuP87G7m4GIcX3iVWwH0tfPBjkV+tU4HR7pRAQZeNKKiAkU3q6Phi+zWLUAfE0aDias7ITmaARdGFq+4pVDdn3kPAY9K6mXVg6X+E10jHGZFwHzgy1cJj7XHW+jZhzPqNR3hw3XjWqF9ksrHM/AntA+tb0cqfawZ7EOnpgNsPysJSw62EE0iKqZh1O1M1qroksgrkj6XRTBBjGN3UuXEbMTrrex4ZpU83BoqI32q2noP1HDvjgVOgJ0534hlLcMOGKwhKy2OBd58RsCBgSBgQjsBI1bZuMwXc3oOE+rdElwot+63B60KFABUFZO4i15AgMBAAECggEAOlvOgHaJWsc9VOZ9ATMpJS/ZTitap46/bSt2aDo6Oh5lmyxV1ph2G+rHeZ0dfmOtqWV9Ilt+x9myTZBqyu6uw6jWi77g2nPTQ+AH8A6wa4AFEVmsvcxWlNB0zklIpW/u4WDLEO8ZlsQUbfGZVTSfEGoPA2luOXbe62mxgY6AgyF9NNda6qUBCVvZmqB/R85KpotuvFgCr78ClPD5S1nv8pEwMEdKIxUBdrpJeHT0IXV/WD9BHpN+q39g8mUB8bg2f9JRZ+GZ0L5g8mGQzgxnGEJbBem07t+Q0NYkladic7jji/YJXZCLN8x7+2YaZa3T01sLHyhhdW8QY+C0YgkyxQKBgQDbh6ozHG1VGZUsOaIngsLMN6eWFhl/9mTYGSGIpBXQn28YdoxUEcv7ysdBqxbcG+qngpamYCn8FPKHKKn1wrpa320wAiAl/F8f+KICm17XAjXWAQ/iWbf+DM15FGkvQWXrTpd5D0xCUVFyyFITLWs+eg+jWrN+nlhGhhr7rm3m+wKBgQC+M4dubH5mi1xDUqpBT6Sn/Y52K08oZGL247TSMTtJILkZ9B/8rXKv1MPiybGFvKkSjoAErca20GU26w7vHls888kApFZQhLzdkHlIeqhdCPqTq2XeQdtRHHMmTYK3t8nmHOxIwmIVpmbO6jUEkLkqkRmlAUKMFjMwoaLlPFujGwKBgQCYYbQnpDzUDFz6hMrk6CQ1QxCF4rMymqJnShJ32YX2+SRRc8B2fp/8GEZ1c7/7azlXqxLNTAT4oMW0Qeqv18opV9tfrqoIFAUnmRtD+fs7/aHG+ZfAA4zuwI5D1IIqthd73WLROmgxxGZn6VrnSuidRnbiagwcAOe/lEjYmLxazwKBgBgYEvnsCH8Y/FES8bpgSm11c0yI4/gr71VzNv7Bec8jtA8Tm9G4byTTARWDk1drtMdDAfiVwux5rbitQjEMWWZ5Q2cvaje8+OfgW1zRHO7cKlH2jmr/ULcPsY6SlxKK16qs00nMRfyUHcXsaVbwtmQsCWGbrUBtt4Jbl3UOllUtAoGAN+N79ABiNcOwW08iYxhqRcs4HwH1lmTL097ujmLi4YatZYPVTNFgxCBwMm4dVtCeo9jgUPQTJAxqzdiC+C8L/oBOB0dYlAR4VXx06w+F24zi2hvtVrU+Ojci8BJr5mHX3hu83kw7JWhpYOAi2oZpd3hA5sgEyAiGwUbFA9vCwAs=";
    //参数返回格式，只支持 JSON 格式。
//    public static final String FORMAT = "JSON";
    //编码集，支持 GBK/UTF-8。
//    public static final String CHARSET = "UTF-8";
    //商户生成签名字符串所使用的签名算法类型，目前支持 RSA2 和 RSA，推荐使用 RSA2。
//    public static final String SIGN_TYPE = "RSA2";
    public static final String APP_CERT_PATHAPP_CERT_PATH = "D:\\payAli\\appCertPublicKey_2021002187615001.crt";
    public static final String ALIPAY_CERT_PATH = "D:\\payAli\\alipayCertPublicKey_RSA2.crt";
    public static final String ALIPAY_ROOT_CERT_PATH = "D:\\payAli\\alipayRootCert.crt";


    // 服务商appid
    static String appid = "2021002187615001";
    // 固定
    static String scope = "auth_user";
    // 授权回调地址
    static String redirectUri = "https://zhixinren.lanxiang.co/hr/api/v1/aliPay/back";


    public static void main(String[] args) throws UnsupportedEncodingException, AlipayApiException {

        String bankCard = "6230580000054508325";
        String bankName = bankNameByBankNo(bankCard);
        System.out.println(bankName);
        System.out.println(bankNameToChinese(bankName));


        // 公共参数
//        CertAlipayRequest certAlipayRequest = buildCertAlipayRequest(URL, APPID, APP_PRIVATE_KEY,
//                APP_CERT_PATHAPP_CERT_PATH, ALIPAY_CERT_PATH, ALIPAY_ROOT_CERT_PATH);
//
//        String appAuthToken = "202111BB551d3553820f4e26919cfe7890681E32";

//         第一步 拼接url 引导用户授权
//        String url = "https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?" +
//                "app_id="+appid+"&" +
//                "scope="+scope+"&" +
//                "redirect_uri="+ URLEncoder.encode(redirectUri, "utf-8")+"&" +
//                "state=whahy";
//        System.out.println("url===========================");
//        System.out.println(url);
//        System.out.println("url===========================");


        // 得到 auth_code 后，开发者通过 alipay.system.oauth.token 接口
        // 使用 auth_code 换取 access_token 及用户的 user_id
//        AlipayClient alipayClient = new DefaultAlipayClient(certAlipayRequest);
//        AlipaySystemOauthTokenRequest request = new AlipaySystemOauthTokenRequest();
//        request.setCode("1db0aff3ecb546fcaf03d5002a3aYX38");
//        request.setGrantType("authorization_code");
//        try {
//            AlipaySystemOauthTokenResponse oauthTokenResponse = alipayClient.certificateExecute(request);
//            System.out.println(oauthTokenResponse.getAccessToken());
//            System.out.println(oauthTokenResponse.getCode());
//            System.out.println(oauthTokenResponse.getRefreshToken());
//            System.out.println(oauthTokenResponse.getUserId());
//        } catch (AlipayApiException e) {
//            //处理异常
//            e.printStackTrace();
//        }

//        AlipayClient alipayClient = new DefaultAlipayClient(certAlipayRequest);
//        AlipaySystemOauthTokenRequest request = new AlipaySystemOauthTokenRequest();
//        request.setGrantType("refresh_token");
//        request.setRefreshToken("authusrB3add305c7c7a4049a1172045b2fafD38");
//        try {
//            AlipaySystemOauthTokenResponse oauthTokenResponse = alipayClient.certificateExecute(request);
//            System.out.println(oauthTokenResponse.getBody());
//        } catch (AlipayApiException e) {
//            //处理异常
//            e.printStackTrace();
//        }

//        String code = "29d37efd09a84967b30d0bb5b53eYX38&format";
//        String accessToken = "authusrB9b17a124500a4f50ac740d7a30d45X38";

//        AlipayClient alipayClient = new DefaultAlipayClient(certAlipayRequest);
//        AlipayUserInfoShareRequest request = new AlipayUserInfoShareRequest();
//        try {
//            AlipayUserInfoShareResponse userinfoShareResponse = alipayClient.certificateExecute(request, accessToken);
//            System.out.println(userinfoShareResponse.getBody());
//        } catch (AlipayApiException e) {
//            //处理异常
//            e.printStackTrace();
//        }


//        AlipayClient alipayClient = new DefaultAlipayClient(certAlipayRequest);
//        AlipayUserCertdocCertverifyPreconsultRequest request = new AlipayUserCertdocCertverifyPreconsultRequest();
//        request.setBizContent("{" +
//                "\"user_name\":\"张三\"," +
//                "\"cert_type\":\"IDENTITY_CARD\"," +
//                "\"cert_no\":\"230100199901010001\"," +
//                "\"mobile\":\"13812345678\"," +
//                "\"logon_id\":\"sample@sample.com\"," +
//                "\"ext_info\":\"{}\"" +
//                "  }");
//        request.putOtherTextParam("app_auth_token", appAuthToken);
//        AlipayUserCertdocCertverifyPreconsultResponse response = alipayClient.certificateExecute(request);
//        if(response.isSuccess()){
//            System.out.println("调用成功");
//        } else {
//            System.out.println("调用失败");
//        }

//        //获得初始化的AlipayClient
//        AlipayClient alipayClient = new DefaultAlipayClient(certAlipayRequest);
//        AlipayUserAgreementPageSignRequest request = new AlipayUserAgreementPageSignRequest();
//        request.setBizContent("{" +
//                "    \"external_logon_id\": \"jdkj_xqjr@xiaoqiaojr.com\"," +
//                "    \"personal_product_code\": \"FUND_SAFT_SIGN_WITHHOLDING_P\"," +
//                "    \"sign_scene\": \"INDUSTRY|SATF_ACC\"," +
//                "    \"external_agreement_no\": \"20211124whahy\"," +
//                "    \"third_party_type\": \"whahywhshr\"," +
//                "    \"product_code\": \"FUND_SAFT_SIGN_WITHHOLDING\"," +
//                "    \"access_params\":{\"channel\":\"QRCODE\"}" +
//                "}");
//        //设置业务参数
//        request.putOtherTextParam("app_auth_token", appAuthToken);
//        //通过alipayClient调用API，获得对应的response类
//        AlipayUserAgreementPageSignResponse response = alipayClient.pageExecute(request, "get");
//        System.out.println(response.getBody());


//        //获得初始化的AlipayClient
//        AlipayClient alipayClient = new DefaultAlipayClient(certAlipayRequest);
//        AlipayUserAgreementQueryRequest request = new AlipayUserAgreementQueryRequest();
//        request.setBizContent("{" +
//                "    \"personal_product_code\": \"FUND_SAFT_SIGN_WITHHOLDING_P\"," +
//                "    \"sign_scene\": \"INDUSTRY|SATF_ACC\"," +
//                "    \"product_code\": \"FUND_SAFT_SIGN_WITHHOLDING\"," +
//                "    \"external_agreement_no\": \"20211124whahy\"," +
//                "    \"third_party_type\": \"whahywhshr\"" +
//                "}");
//        //设置业务参数
//        request.putOtherTextParam("app_auth_token", appAuthToken);
//        //通过alipayClient调用API，获得对应的response类
//        AlipayUserAgreementQueryResponse response = alipayClient.certificateExecute(request);
//        System.out.println(response.getBody());
//        System.out.println(response.getExternalAgreementNo());


//        DefaultAlipayClient alipayClient = new DefaultAlipayClient(certAlipayRequest);
//        AlipayFundTransUniTransferRequest request = new AlipayFundTransUniTransferRequest();
//        request.setBizContent("{" +
//                "\"out_biz_no\":\"20211124whahy\"," +
//                "\"trans_amount\":1.68," +
//                "\"product_code\":\"SINGLE_TRANSFER_NO_PWD\"," +
//                "\"biz_scene\":\"ENTRUST_TRANSFER\"," +
//                "\"order_title\":\"201905代发\"," +
//                "\"payee_info\":{" +
//                "\"identity_type\":\"ALIPAY_LOGON_ID\"," +
//                "\"identity\":\"15739966836\"," +
//                "\"name\":\"吴鸿\"," +
//                "}," +
//                "\"remark\":\"201905代发\"," +
//                "\"business_params\":\"{\\\"payer_show_name_use_alias\\\":\\\"true\\\"}\"," +
//                "\"payer_info\":{" +
//                "\"identity_type\":\"ACCOUNT_BOOK_ID\"," +
//                "\"identity\":\"2088410285335863\"," +
//                " \"ext_info\": \"{\\\"agreement_no\\\":\\\"20211124whahy\\\"}\"" +
//                "    }" +
//                "  }");
//        request.putOtherTextParam("app_auth_token", appAuthToken);
//        AlipayFundTransUniTransferResponse response = alipayClient.certificateExecute(request);
//        if(response.isSuccess()){
//            System.out.println("调用成功");
//        } else {
//            System.out.println("调用失败");
//        }
    }

    public static CertAlipayRequest buildCertAlipayRequest(String url, String appId, String appPrivateKey,
                                                           String appCertPath, String alipayCertPath,
                                                           String alipayRootCertPath) {

        CertAlipayRequest certAlipayRequest = new CertAlipayRequest();
        certAlipayRequest.setServerUrl(url);
        certAlipayRequest.setAppId(appId);
        certAlipayRequest.setPrivateKey(appPrivateKey);
        certAlipayRequest.setFormat("JSON");
        certAlipayRequest.setCharset("UTF-8");
        certAlipayRequest.setSignType("RSA2");
        certAlipayRequest.setCertPath(appCertPath);
        certAlipayRequest.setAlipayPublicCertPath(alipayCertPath);
        certAlipayRequest.setRootCertPath(alipayRootCertPath);
        return certAlipayRequest;
    }

    /**
     * 调用阿里接口 识别银行卡的银行名称（返回的是简写）
     * @param bankNo 银行卡号
      */
    public static String bankNameByBankNo(String bankNo) {
        HttpResponse<String> socResponse = Unirest.get("https://ccdcapi.alipay.com/validateAndCacheCardInfo.json" +
                "?_input_charset=utf-8&cardNo=" + bankNo + "&cardBinCheck=true")
                .asString();
        String bankInfo = socResponse.getBody();
        log.info("调用阿里开放接口识别银行卡号属于哪一个银行，识别的卡号：{}，识别结果：{}", bankNo, bankInfo);
        JSONObject jsonObject = JSON.parseObject(bankInfo);
        return jsonObject.getString("bank") == null ? "" : jsonObject.getString("bank");
    }

    /**
     * 把简写银行名称转换为中文
     * @param bankName 银行简写名称
      */
    public static String bankNameToChinese(String bankName) {
        if (bankName == null) {
            return "";
        }
        switch (bankName) {
            case "ICBC":
                return "中国工商银行";
            case "ABC":
                return "中国农业银行";
            case "CCB":
                return "中国建设银行";
            case "CMB":
                return "招商银行";
            case "BOC":
                return "中国银行";
            case "PSBC":
                return "中国邮政储蓄银行";
            case "COMM":
                return "交通银行";
            case "CITIC":
                return "中信银行";
            case "CMBC":
                return "中国民生银行";
            case "CEB":
                return "中国光大银行";
            case "CIB":
                return "兴业银行";
            case "SPDB":
                return "浦发银行";
            case "GDB":
                return "广发银行";
            case "SPABANK":
                return "平安银行";
            case "HXBANK":
                return "华夏银行";
            case "BJBANK":
                return "北京银行";
            case "SHBANK":
                return "上海银行";
            case "JSBANK":
                return "江苏银行";
            case "BJRCB":
                return "北京农商行";
            case "JSRCU":
                return "江苏省农村信用社联合社";
            case "ASCB":
                return "鞍山银行";
            case "ARCU":
                return "安徽省农村信用社";
            case "BSB":
                return "包商银行";
            case "BOHAIB":
                return "渤海银行";
            case "BDCBANK":
                return "保定银行";
            case "BOCFCB":
                return "中银富登村镇银行";
            case "JKRFCZYH":
                return "长春经开融丰村镇银行";
            case "CRCBANK":
                return "重庆农村商业银行";
            case "CSRCB":
                return "常熟农商银行";
            case "CDCB":
                return "成都银行";
            case "CCQTGB":
                return "重庆三峡银行";
            case "CSCB":
                return "长沙银行";
            case "CQBANK":
                return "重庆银行";
            case "LYRTCZYH":
                return "长春绿园融泰村镇银行";
            case "BOCD":
                return "承德银行";
            case "CCHRCZYH":
                return "长春朝阳和润村镇银行";
            case "BOCZ":
                return "沧州银行";
            case "BOCY":
                return "朝阳银行";
            case "CABANK":
                return "长安银行";
            case "CDRCB":
                return "成都农商银行";
            case "DRCBCL":
                return "东莞农村商业银行";
            case "HKBEA":
                return "东亚银行";
            case "DLB":
                return "大连银行";
            case "DYCCB":
                return "东营银行";
            case "DZBANK":
                return "德州银行";
            case "DLRCB":
                return "大连农村商业银行";
            case "DYCB":
                return "长城华西银行";
            case "BOD":
                return "东莞银行";
            case "ORBANK":
                return "鄂尔多斯银行";
            case "FXCB":
                return "阜新银行";
            case "FDB":
                return "富滇银行";
            case "FJNX":
                return "福建省农村信用社联合社";
            case "FJHXBC":
                return "福建海峡银行";
            case "FBBANK":
                return "富邦华一银行";
            case "GDRCC":
                return "广东省农村信用社联合社";
            case "GZRCU":
                return "贵州省农村信用社联合社";
            case "NYBANK":
                return "广东南粤银行";
            case "BGB":
                return "广西北部湾银行";
            case "GRCB":
                return "广州农村商业银行";
            case "GCB":
                return "广州银行";
            case "GYCB":
                return "贵阳银行";
            case "GSBANK":
                return "甘肃银行";
            case "GHB":
                return "广东华兴银行";
            case "GXRCU":
                return "广西壮族自治区农村信用社联合社";
            case "GZB":
                return "赣州银行";
            case "ZYCBANK":
                return "贵州银行";
            case "GLBANK":
                return "桂林银行";
            case "GSRCU":
                return "甘肃省农村信用社";
            case "BOHN":
                return "海南省农村信用社";
            case "UBCHN":
                return "海口联合农商银行";
            case "HURCB":
                return "湖北省农信社";
            case "EGBANK":
                return "恒丰银行";
            case "HANABANK":
                return "韩亚银行";
            case "HSBANK":
                return "徽商银行";
            case "HRXJB":
                return "华融湘江银行";
            case "HBC":
                return "湖北银行";
            case "HLDB":
                return "葫芦岛银行";
            case "HSBK":
                return "衡水市商业银行";
            case "BHB":
                return "河北银行";
            case "HZCB":
                return "杭州银行";
            case "HBRCU":
                return "河北省农村信用社";
            case "HRBANK":
                return "哈尔滨银行";
            case "QYBANK":
                return "韩国企业银行";
            case "HNRCU":
                return "河南省农村信用社";
            case "HNRCC":
                return "湖南省农村信用社";
            case "HDBANK":
                return "邯郸银行";
            case "HLJRCU":
                return "黑龙江省农村信用社联合社";
            case "HKB":
                return "汉口银行";
            case "HZCCB":
                return "湖州银行";
            case "HSCZB":
                return "湖商村镇银行";
            case "JXRCU":
                return "江西省农村信用社";
            case "JSB":
                return "晋商银行";
            case "JHBANK":
                return "金华银行";
            case "BOJZ":
                return "锦州银行";
            case "JZCBANK":
                return "焦作中旅银行";
            case "JZBANK":
                return "晋中银行";
            case "JLBANK":
                return "吉林银行";
            case "JJBANK":
                return "九江银行";
            case "NCB":
                return "江西银行";
            case "JNBANK":
                return "济宁银行";
            case "JINCHB":
                return "晋城银行";
            case "CZRCB":
                return "江南农村商业银行";
            case "JRCB":
                return "江苏江阴农村商业银行";
            case "JXBANK":
                return "嘉兴银行";
            case "CJCCB":
                return "江苏长江商业银行";
            case "TCRCB":
                return "江苏太仓农村商业银行";
            case "JLRCU":
                return "吉林省农村信用社联合社";
            case "KLB":
                return "昆仑银行";
            case "KSRB":
                return "昆山农村商业银行";
            case "LSBANK":
                return "莱商银行";
            case "LSBC":
                return "临商银行";
            case "LANGFB":
                return "廊坊银行";
            case "LHBANK":
                return "漯河银行";
            case "LYCB":
                return "辽阳银行";
            case "DAQINGB":
                return "龙江银行";
            case "LSCCB":
                return "乐山市商业银行";
            case "LNRCC":
                return "辽宁省农村信用社";
            case "LZYH":
                return "兰州银行";
            case "URB":
                return "联合村镇银行";
            case "BOL":
                return "洛阳银行";
            case "LZCCB":
                return "柳州银行";
            case "LUZBANK":
                return "泸州市商业银行";
            case "MYBANK":
                return "绵阳市商业银行";
            case "KJCZYH":
                return "梅县客家村镇银行";
            case "NXRCU":
                return "宁夏黄河农村商业银行";
            case "H3CB":
                return "内蒙古银行";
            case "CGNB":
                return "四川天府银行";
            case "NXBANK":
                return "宁夏银行";
            case "NMGNXS":
                return "内蒙古农村信用社联合社";
            case "NBBANK":
                return "宁波银行";
            case "NJCB":
                return "南京银行";
            case "NBCBANK":
                return "宁波通商银行";
            case "BNY":
                return "南阳市商业银行";
            case "NHB":
                return "南海农商银行";
            case "PZHCCB":
                return "攀枝花市商业银行";
            case "BOP":
                return "平顶山银行";
            case "QLBANK":
                return "齐鲁银行";
            case "QDCCB":
                return "青岛银行";
            case "QHRC":
                return "青海省农村信用社";
            case "BOQZ":
                return "泉州银行";
            case "BOQH":
                return "青海银行";
            case "ZBCB":
                return "齐商银行";
            case "QJCCB":
                return "曲靖市商业银行";
            case "RZB":
                return "日照银行";
            case "YDNSCZYH":
                return "尧都农商银行村镇银行";
            case "SDEB":
                return "顺德农商银行";
            case "SZSBK":
                return "石嘴山银行";
            case "SJBANK":
                return "盛京银行";
            case "SRCB":
                return "深圳农村商业银行";
            case "SDRCU":
                return "山东省农村信用社联合社";
            case "SXRCCU":
                return "陕西省农信社";
            case "SXRCU":
                return "山西省农村信用社";
            case "SHRCB":
                return "上海农商银行";
            case "SNCCB":
                return "遂宁银行";
            case "SCRCU":
                return "四川省农村信用社联合社";
            case "SRBANK":
                return "上饶银行";
            case "BOSZ":
                return "苏州银行";
            case "SXCB":
                return "绍兴银行";
            case "TJBHB":
                return "天津滨海农村商业银行";
            case "TACCB":
                return "泰安银行";
            case "TCCB":
                return "天津银行";
            case "TZCB":
                return "台州银行";
            case "TRCB":
                return "天津农商银行";
            case "WHBANK":
                return "乌海银行";
            case "KEB":
                return "外换银行";
            case "WRCB":
                return "无锡农村商业银行";
            case "BANKWF":
                return "潍坊银行";
            case "WJRCB":
                return "吴江农村商业银行";
            case "WZCB":
                return "温州银行";
            case "ANTBANK":
                return "网商银行";
            case "WHRCB":
                return "武汉农村商业银行";
            case "URMQCCB":
                return "乌鲁木齐银行";
            case "WHCCB":
                return "威海市商业银行";
            case "XMBANK":
                return "厦门银行";
            case "XTB":
                return "邢台银行";
            case "XJRCU":
                return "新疆农村信用社";
            case "XIB":
                return "厦门国际银行";
            case "XABANK":
                return "西安银行";
            case "BOSH":
                return "新韩银行";
            case "BOYK":
                return "营口银行";
            case "WOORI":
                return "友利银行";
            case "YZBANK":
                return "银座村镇银行";
            case "YBCCB":
                return "宜宾市商业银行";
            case "YTBANK":
                return "烟台银行";
            case "YXCCB":
                return "云南红塔银行";
            case "YKYHCCB":
                return "营口沿海银行";
            case "NBYZ":
                return "宁波鄞州农商行";
            case "YNRCC":
                return "云南省农村信用社";
            case "RBOZ":
                return "珠海华润银行";
            case "MTBANK":
                return "浙江民泰商业银行";
            case "CZBANK":
                return "浙商银行";
            case "ZZYH":
                return "枣庄银行";
            case "ZRCBANK":
                return "张家港农村商业银行";
            case "ZGCCB":
                return "自贡银行";
            case "ZJNX":
                return "浙江省农村信用社联合社";
            case "ZYB":
                return "中原银行";
            case "CZCB":
                return "浙江稠州商业银行";
            case "ZJKCCB":
                return "张家口银行";
            case "ZJTLCB":
                return "浙江泰隆商业银行";
            case "ZZBANK":
                return "郑州银行";
            default:
                return "";
        }
    }

}
